<h1>Listing attendees</h1>

<table>
  <tr>
    <th>Name</th>
    <th>Group size</th>
    <th>Calendar item</th>
  </tr>

<% for attendee in @attendees %>
  <tr>
    <td><%=h attendee.name %></td>
    <td><%=h attendee.group_size %></td>
    <td><%=h attendee.calendar_item_id %></td>
    <td><%= link_to 'Show', attendee %></td>
    <td><%= link_to 'Edit', edit_attendee_path(attendee) %></td>
    <td><%= link_to 'Destroy', attendee, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New attendee', new_attendee_path %>
